# 1.导包
import time
import unittest
from libs.HTMLTestRunner import HTMLTestRunner
#2.封装测试套件
suite=unittest.defaultTestLoader.discover('./scripts','test*')
# file='./report/report {}.html'.format(time.strftime("%Y%m%d_%H%M%S"))
file='./report/report.html'
with open(file,'wb') as f:
    print(suite)
    runner=HTMLTestRunner(f)
    runner.run(suite)
